package gob.osinerg.emergencia.service;

import gob.osinerg.emergencia.bean.FormularioEmergenciaUnmay;
import gob.osinerg.emergencia.bean.Incidente;
import gob.osinerg.emergencia.bean.IncidenteDetalle;
import gob.osinerg.emergencia.dao.IncidenteDAO;

import java.util.List;

public class IncidenteServiceImpl implements IncidenteService{

	private IncidenteDAO dao;

	public void save(Incidente bean, List detalleList, FormularioEmergenciaUnmay beanform) throws Exception {
		getDao().save(bean, detalleList, beanform);
	}
	public void delete(IncidenteDetalle bean) throws Exception{
		getDao().delete(bean);
	}
	public IncidenteDAO getDao() {
		return dao;
	}
	public void setDao(IncidenteDAO dao) {
		this.dao = dao;
	}
	
}
